import Vue from 'vue'
import App from './App.vue'
import plugins from './plugins.js'
import 'bootstrap/dist/css/bootstrap.min.css'
//引入vue-resource 发送ajax请求
import vueResource from 'vue-resource'
//引入store
import store from './store'
//引入路由器
import VueRouter from 'vue-router'
//引入router
import router from './router'

//关闭Vue的生产提示
Vue.config.productionTip = false

Vue.use(plugins)
Vue.use(vueResource)
Vue.use(VueRouter)

console.log(new Vue({
  render: h => h(App),
  store,
  router: router,
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app'))
